<?php

    $content=short_check(get_args("content"));
    $time=time();
    $id=get_sess_userid();
    $name=get_sess_username();
    $ico=get_sess_userico();
    $t_blog="";
    $dbo = new dbex;
//读写分离定义函数
    dbtarget('w',$dbServs);
    $sql ="insert into iweber_message(iweber_message_content,iweber_message_time,iweber_user_id,iweber_user_name,iweber_user_ico)";
    $sql.=" values ('".$content."',$time,$id,'$name','$ico')";
    if($dbo->exeUpdate($sql)){
    action_return(1,"添加心语成功！",'');
}
//回应信息
    action_return(0,"添加心语失败！",'');

?>
